package com.iflytek.sbd.mybatis;




import java.io.Serializable;
import java.util.List;

/**
 * @program: myes
 * @description:
 * @author: 陈英俊
 * @create: 2021-09-16 14:21
 */
public interface BaseService<T> {

    T save(T t);

    T findByPrimaryKey(Serializable id);

    Integer updateByPrimaryKeySelective(T t);

    Integer saveOrUpdateBySelective(T t);

    Integer updateByPrimaryKey(T t);

    Integer deleteByPrimaryKey(Serializable id);

    PageResultBean<T> findListByPage(Object condition, PageSizeQueryDto dto);

    List<T> findListByCondition(Object condition);

    List<T> findAll();

    T findByCondition(T t);

    Integer saveOrUpdate(T t);

    Integer batchSave(List<T> list);

    Integer batchSave(List<T> list, int batchSize);

    T findOneByCondition(Object condition);
}
